import request from "@/api/request";


//添加个人简历
export function addResume(resume){
    return request({
        url:'/resume/add',
        method:'post',
        data:resume
    })
}


//删除个人简历
export function delResume(id){
    return request({
        url:'/resume/del/'+id,
        method:'delete'
    })
}

//查询简历
export function getResume(Sid){
    return request({
        url:'/resume/get',
        params:{
            Sid
        }
    })
}

export function getSingleResume(id){
    return request({
        url:'/resume/get',
        params:{
            id
        }
    })
}

//修改个人简历
export function putResume(resume){
    return request({
        url:'/resume/put',
        data:resume,
        method:'put'
    })
}

//添加证书
export function addCertificate(certificate){
    return request({
        url:'/resume/addCertificate',
        method:'post',
        data:certificate
    })
}

//添加经历
export function addExperience(experience){
    return request({
        url:'/resume/addExperience',
        method:'post',
        data:experience
    })
}

//添加技能
export function addSkill(skill){
    return request({
        url:'/resume/addSkill',
        method:'post',
        data:skill
    })
}

//删除证书
export function delCertificate(id){
    return request({
        url:'/resume/delCertificate',
        method:'delete',
        params:{
            id
        }
    })
}

//删除经历
export function delExperience(id){
    return request({
        url:'/resume/delExperience',
        method:'delete',
        params:{
            id
        }
    })
}

//删除技能
export function delSkill(id){
    return request({
        url:'/resume/delSkill',
        method:'delete',
        params:{
            id
        }
    })
}
